package com.monkey.thread;

/**
 * @Author MonkeyBrother
 * @Date 2020/12/17 23:29
 * @Desc
 **/
public class Son implements Runnable {
    private Account account;

    public Son(Account account) {
        this.account = account;
    }

    @Override
    public void run() {
        while (true){
            try {
                account.outMoney(40);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
